function encryptWord(word) {
    let encryptedWord = '';
    for (let i = 0; i < word.length; i++) {
        let charCode = word.charCodeAt(i);
        if (charCode >= 97 && charCode <= 122) { // 小写字母
            charCode = ((charCode - 97 + 5) % 26) + 97;
        } else if (charCode >= 65 && charCode <= 90) { // 大写字母
            charCode = ((charCode - 65 + 5) % 26) + 65;
        }
        encryptedWord += String.fromCharCode(charCode);
    }
    // let encrypted = encryptWord(word);
    // console.log(encrypted); // 输出：Mjqqt
    return encryptedWord;
}


